package com.right.health.app.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/*
 * Created by hopeliao on 2019-12-20
 *
 */
public class DoctorResponse extends PageResponse{

     public List<DoctorInfo> reginfos;

     public static class DoctorInfo implements Parcelable {

         /**
          * doctorlevel : 主治医师
          * doctorlevelcode : 233
          * doctorname : 刘峰
          * deptid : 2010201
          * doctorid : 00479
          * regtotalcount : 20
          * description :
          * regleavecount : 20
          * deptname : 便民门诊
          */

         public String doctorlevel;
         public String doctorlevelcode;
         public String doctorname;
         public String deptid;
         public String doctorid;
         public String regtotalcount;
         public String description;
         public String regleavecount;
         public String deptname;


         @Override
         public int describeContents() {
             return 0;
         }

         @Override
         public void writeToParcel(Parcel dest, int flags) {
             dest.writeString(this.doctorlevel);
             dest.writeString(this.doctorlevelcode);
             dest.writeString(this.doctorname);
             dest.writeString(this.deptid);
             dest.writeString(this.doctorid);
             dest.writeString(this.regtotalcount);
             dest.writeString(this.description);
             dest.writeString(this.regleavecount);
             dest.writeString(this.deptname);
         }

         public DoctorInfo() {
         }

         protected DoctorInfo(Parcel in) {
             this.doctorlevel = in.readString();
             this.doctorlevelcode = in.readString();
             this.doctorname = in.readString();
             this.deptid = in.readString();
             this.doctorid = in.readString();
             this.regtotalcount = in.readString();
             this.description = in.readString();
             this.regleavecount = in.readString();
             this.deptname = in.readString();
         }

         public static final Parcelable.Creator<DoctorInfo> CREATOR = new Parcelable.Creator<DoctorInfo>() {
             @Override
             public DoctorInfo createFromParcel(Parcel source) {
                 return new DoctorInfo(source);
             }

             @Override
             public DoctorInfo[] newArray(int size) {
                 return new DoctorInfo[size];
             }
         };
     }
}
